package com.example.mapper;

import com.example.entity.Person;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author およそ神
 * @version JDK 1.8
 */
@Mapper
@Repository
public interface PersonMapper {
    Boolean addPerson(Person person);

    Person searchById(Integer id);

    List<Person> searchAll();
}
